var http=require('http');
var fs=require('fs');
http.createServer(function(req,res){
	res.setHeader('Access-Control-Allow-Origin','*');
	fs.readFile('../data/shouye.json',function(err,data){
		if(err==null){
			res.writeHead(200,{'Content-Type':'text/html;charset=utf-8'});
			res.end(data);
		}else{
			res.writeHead(404,{'Content-Type':'text/html;charset=utf-8'});
			res.end();
		}
	})
}).listen(8080);

